def main():
    import requests
    import json

    headers = {
        "accept": "*/*",
        "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
        "content-type": "application/json",
        "origin": "https://jp.match.com",
        "priority": "u=1, i",
        "referer": "https://jp.match.com/profile/me/edit",
        "sec-ch-ua": "\"Microsoft Edge\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\"",
        "sec-ch-ua-mobile": "?0",
        "sec-ch-ua-platform": "\"Windows\"",
        "sec-fetch-dest": "empty",
        "sec-fetch-mode": "cors",
        "sec-fetch-site": "same-origin",
        "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0"
    }
    cookies = {
        # "machineid": "8D2F5DF4-5D91-4EB3-B213-A62DC0374FD8",
        # "_csrf": "YFuivdQ4FspG4s_M7taMjLCp",
        # "searchparams": "%7B%22gender%22%3A1%2C%22seekingGender%22%3A2%2C%22minAge%22%3A25%2C%22maxAge%22%3A35%2C%22postalCode%22%3A%2290210%22%2C%22distance%22%3A50%2C%22isOnlineNow%22%3Afalse%2C%22withPhotos%22%3Atrue%2C%22certifiedOnly%22%3Afalse%2C%22availableForChat%22%3Afalse%7D",
        # "OptanonAlertBoxClosed": "2024-05-21T05:59:01.852Z",
        # "_gcl_au": "1.1.102995911.1716271142",
        # "__lt__cid": "df5f4f20-add6-4727-b1d0-bfad41adfcce",
        # "__lt__sid": "98480e34-bc9210bf",
        # "_fbp": "fb.1.1716271142978.517896465",
        # "_yjsu_yjad": "1716271143.dd9bf615-346f-493d-801c-c8c76d2f69ab",
        "authtoken": "7nHYc6yoEjJqQnX%2Bf2fKmPEzg1MBNRa8xwjH0K6%2FMOigd4g9767JJxQ4tcUzzbzh9GVVbVHUIgzsK6LERaO6R9GEyJbE0wYQqFARc%2BlDCbrA%2FguD0OnfN01PxaLPoeWzYpU%2BoJR6PcNcKuNcZ6GAKj%2Bc9k3Ycs4w86L2N4AdUEAGw9vtKLl5m2a%2F1a6eXoXp%2CMatchFD51DE89D449%2C12%2C49",
        # "Password": "vrk_gdVyyHQyEkBExPRc7Q2",
        # "Handle": "vrk_gdVyyHQrQZweGqvOD8aUt64mgOL60",
        # "uid": "CXB9UEXqP2IGb5U0-QVGBA2",
        # "cc": "109",
        # "FCNEC": "%5B%5B%22AKsRol8pYmGMWjZV_SR-0CAtklkRkjh-Mmj4gyHGVB13eGL5_CdhSY_PU3TwvpuqPpVQ_b8fEhEsDczj10CaiYzGG9JmpAyY456WwwrcUVH-F-dHrrQ3TwDoZpTtRdE2MAwPcj7UWCxxUt590lPWrkkgQpWXcn4k1A%3D%3D%22%5D%5D",
        # "ADRUM": "s=1716271961785&r=https%3A%2F%2Fjp.match.com%2Fprofile%2Fme%2Fedit%3F0",
        # "RT": "\"sl=3&ss=1716271119295&tt=23915&obo=0&bcn=%2F%2F684d0d4a.akstat.io%2F&sh=1716271963062%3D3%3A0%3A23915%2C1716271324780%3D2%3A0%3A22641%2C1716271140593%3D1%3A0%3A21295&dm=match.com&si=0eba8a4a-c787-4c40-938f-8031d360ae2c&ld=1716271963062\"",
        # "OptanonConsent": "isGpcEnabled=0&datestamp=Tue+May+21+2024+14%3A12%3A43+GMT%2B0800+(%E4%B8%AD%E5%9B%BD%E6%A0%87%E5%87%86%E6%97%B6%E9%97%B4)&version=6.39.0&isIABGlobal=false&hosts=&consentId=eccfa617-4f2d-42f5-865c-7ca97b1f8e9e&interactionCount=1&landingPath=NotLandingPage&groups=1%3A1%2C2%3A1%2C3%3A1%2C4%3A1&geolocation=%3B&AwaitingReconsent=false",
        # "ADRUM_BT": "R:36|i:375448|g:4fbf5181-e8aa-4a80-a1c7-aa261388217b25504970|e:34|n:matchcom_1a7e9d7a-2e56-4fa7-93ca-81d5e14cf768"
    }
    url = "https://jp.match.com/graphql"
    data = {
        "operationName": "CurrentUserProfile",
        "variables": {},
        "query": "query CurrentUserProfile {\n  user {\n    id\n    userId\n    hasUpgradedEnhancedInterests\n    account {\n      userId\n      signUpDate\n      maskedEmail\n      __typename\n    }\n    approvals {\n      approvedPhotoCount\n      primaryPhotoStatus\n      profileApprovalStatus\n      unapprovedPhotoCount\n      __typename\n    }\n    profile {\n      id\n      hasUpgradedEnhancedInterests\n      chatAvailability {\n        id\n        isAvailable\n        isOnline\n        __typename\n      }\n      communities {\n        id\n        items {\n          communityId\n          communityUri\n          level\n          name\n          parentCommunityId\n          __typename\n        }\n        maxResults\n        pageIndex\n        totalItems\n        __typename\n      }\n      handle\n      history {\n        id\n        pageIndex\n        pageSize\n        maxResults\n        totalItems\n        items {\n          initiatorUserId\n          occurredAt\n          photoId\n          photoUri\n          recipientUserId\n          text\n          type\n          __typename\n        }\n        __typename\n      }\n      interactionSummary {\n        blocks {\n          search\n          contact\n          __typename\n        }\n        favorite {\n          sent\n          received\n          __typename\n        }\n        haveCommunicated\n        haveInteracted\n        id\n        matchTalk {\n          blindPhoneNumber\n          status\n          __typename\n        }\n        winks {\n          sent\n          received\n          __typename\n        }\n        __typename\n      }\n      isMyProfileVisible\n      isNewToMatch\n      isOnline\n      isProfileHighlighted\n      isUserProfileVisible\n      lastActiveDate\n      lastLoginDt\n      photos {\n        id\n        items {\n          approvalStatus\n          caption\n          captionApprovalStatus\n          id\n          isPrimary\n          isPrimaryCapable\n          lastModified\n          ordinal\n          uri\n          __typename\n        }\n        totalItems\n        __typename\n      }\n      primaryPhoto {\n        approvalStatus\n        caption\n        captionApprovalStatus\n        id\n        isPrimary\n        isPrimaryCapable\n        lastModified\n        ordinal\n        uri\n        __typename\n      }\n      rank\n      seek {\n        attributes {\n          id\n          answerIds\n          answersData {\n            id\n            answerId\n            answerText\n            __typename\n          }\n          attributeId\n          label\n          weight\n          __typename\n        }\n        gender\n        id\n        lAge\n        lHeight\n        location {\n          id\n          city {\n            id\n            cityCode\n            name\n            shortName\n            __typename\n          }\n          state {\n            id\n            stateCode\n            name\n            shortName\n            __typename\n          }\n          country {\n            id\n            countryCode\n            name\n            shortName\n            __typename\n          }\n          fullName\n          postalCode\n          __typename\n        }\n        photosOnly\n        uAge\n        uHeight\n        withinRadius\n        __typename\n      }\n      self {\n        age\n        attributes {\n          id\n          attributeId\n          answersData {\n            id\n            answerId\n            answerText\n            __typename\n          }\n          answerIds\n          label\n          weight\n          __typename\n        }\n        college {\n          id\n          name\n          __typename\n        }\n        schools {\n          id\n          userId\n          schoolId\n          schoolName\n          educationLevel\n          __typename\n        }\n        essays {\n          id\n          essayId\n          label\n          text\n          approvalStatus\n          __typename\n        }\n        pendingEssays {\n          id\n          essayId\n          label\n          text\n          approvalStatus\n          __typename\n        }\n        trendingEssays {\n          id\n          essayId\n          label\n          text\n          approvalStatus\n          __typename\n        }\n        pendingTrendingEssays {\n          id\n          essayId\n          label\n          text\n          approvalStatus\n          __typename\n        }\n        gender\n        height\n        id\n        location {\n          id\n          city {\n            id\n            cityCode\n            name\n            shortName\n            __typename\n          }\n          state {\n            id\n            stateCode\n            name\n            shortName\n            __typename\n          }\n          country {\n            id\n            countryCode\n            name\n            shortName\n            __typename\n          }\n          fullName\n          postalCode\n          __typename\n        }\n        userStories {\n          id\n          maxResults\n          totalItems\n          items {\n            createdOn\n            id\n            mediaApproveCode\n            mediaId\n            originalUrl\n            thumbnail\n            url\n            userId\n            __typename\n          }\n          __typename\n        }\n        hometown {\n          id\n          cityCode\n          cityName\n          stateCode\n          stateShortName\n          stateName\n          countryCode\n          countryShortName\n          countryName\n          displayName\n          __typename\n        }\n        __typename\n      }\n      userId\n      lastOnlineDate\n      profileQueueStatus\n      userCertifications {\n        id\n        maxResults\n        totalItems\n        items {\n          id\n          certificateId\n          certificateType\n          approvalStatus\n          isVisible\n          uploadDate\n          rejectDate\n          approveDate\n          userId\n          __typename\n        }\n        __typename\n      }\n      connectionsHistoryStatus {\n        id\n        userLikeSent\n        canSendUserLike\n        messageSent\n        messageReceived\n        canSendMessage\n        connectionHistoryStatus\n        connectionDate\n        connectionSummaryText\n        yourTurnText\n        messageText\n        communicationType\n        externalPhotoUrl\n        isRff\n        isConversationDeleted\n        superLikeReceived\n        canSendSuperLike\n        cannotSendSuperLikeReason\n        cannotSendUserLikeReason\n        willCauseMutual\n        isMutual\n        isFromTopSpot\n        canViewReceivedInteractions\n        __typename\n      }\n      subscriptionStatus {\n        isPaidMember\n        __typename\n      }\n      __typename\n    }\n    phoneInfo {\n      badgeVerificationStatus\n      id\n      isRegistrationRequired\n      verificationStatus\n      __typename\n    }\n    renewalUpsell {\n      id\n      isEligible\n      upsellMonths\n      upsellPercentageDiscount\n      __typename\n    }\n    __typename\n  }\n}\n"
    }
    data = json.dumps(data, separators=(',', ':'))
    response = requests.post(url, headers=headers, cookies=cookies, data=data)

    print(response.text)
    print(response)


if __name__ == '__main__':
    main()
